package com.windowes.weichang.dao;

import com.windowes.weichang.pojo.DemandArrival;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DemandArrivalMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(DemandArrival record);

    int insertSelective(DemandArrival record);

    DemandArrival selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(DemandArrival record);

    int updateByPrimaryKey(DemandArrival record);

    List<DemandArrival> selectByItemId(@Param("itemId") Integer itemId, @Param("arrivalType") Integer arrivalType);


    int countByStatus(@Param("shopId") Integer shopId, @Param("status") Integer status,
                      @Param("startTime") String startTime, @Param("endTime") String endTime);
}